class ModelProxy:
    """大模型代理管理器"""

    def __init__(self, config: AIConfig):
        self.config = config
        self.available_models = {
            "gpt-4": "openai",
            "gpt-3.5-turbo": "openai",
            "claude-3": "anthropic",
            "llama-2": "meta"
        }

    def get_client(self, model_name: str):
        """获取对应模型的客户端"""
        provider = self.available_models.get(model_name)
        if not provider:
            raise ValueError(f"不支持的模型: {model_name}")

        if provider == "openai":
            return OpenAIClient(self.config)
        elif provider == "anthropic":
            return AnthropicClient(self.config)
        # 其他模型提供商...

    def chat_completion(self, model: str, messages: List[Dict], **kwargs):
        """统一的聊天补全接口"""
        client = self.get_client(model)
        return client.chat_complete(messages, **kwargs)